@extends('admin.layout')
@section('body')
    <!-- 正文开始 -->
    <div class="layui-fluid">
        <div class="layui-card">
            <div class="layui-card-body">
                <!-- 表格工具栏 -->
                <form class="layui-form toolbar" id="formSearch">
                    <div class="layui-form-item">
                        <div class="layui-inline">
                            <label class="layui-form-label">日期范围::</label>
                            <div class="layui-input-inline">
                                 <input name="date_range" autocomplete="off" id="txtDateRange" class="layui-input"/>
                            </div>
                        </div>
                      
                        <div class="layui-inline">&emsp;
                            <button class="layui-btn icon-btn" lay-filter="searchForm" lay-submit>
                                <i class="iconfont icon-ic_search"></i>@lang('common.search')
                            </button>
                        </div>
                    </div>
                </form>
                <!-- 数据表格 -->
                <table id="adminTable" lay-filter="adminTable"></table>
            </div>
        </div>
    </div>
@stop
@push('script')
    <script type="text/javascript">
        layui.use(['layer', 'form', 'table', 'util', 'admin','laydate'], function () {
            layui.laydate.render({
                elem: '#txtDateRange'
                , range: '~' //或 range: '~' 来自定义分割字符
            });
            let listTableInc = new ListTable("{{admin_url($baseRoute.'pager_effective')}}");
            listTableInc.checkbox();
            listTableInc.lineNumber().title = '排名';
            listTableInc.column("网转", "username");
            listTableInc.column("登记", "dj");
            listTableInc.column("电话", "td");
            listTableInc.column("微信", "tw");
            listTableInc.column("未成年", "wcn");
            listTableInc.column("到诊", "dz");
            listTableInc.column("消费", "xf");
            listTableInc.render();
            window.listTableInc = listTableInc;
        });
    </script>
@endpush
